package com.yfp.device.mapper;

import com.yfp.device.domain.DeviceComboPlanNum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
* @author admin
* @description 针对表【device_combo_plan_num(记录实际投放的数据)】的数据库操作Mapper
* @createDate 2024-06-24 17:19:43
* @Entity domain.com.qfp.device.DeviceComboPlanNum
*/
public interface DeviceComboPlanNumMapper extends BaseMapper<DeviceComboPlanNum> {

    /**
     * 批量插入投放记录表
     * @param deviceComboPlanNumDOS
     */
    void insertAll(@Param("deviceComboPlanNumDOS") ArrayList<DeviceComboPlanNum> deviceComboPlanNumDOS);

    /**
     * 批量修改投放记录表
     * @param dcpnList
     */
    void batchUpdate(@Param("dcpnList") ArrayList<DeviceComboPlanNum> dcpnList);

    List<DeviceComboPlanNum> getByMacineId(@Param("machineId") String machineId);

    /**
     * 获取套餐计划的套餐id
     * @param machineId
     * @return
     */
    List<String> getCPlanComboIds(String machineId);
}




